package net.guerlab.sdk.anubis.request;

import net.guerlab.sdk.anubis.AnubisConstants;
import net.guerlab.sdk.anubis.entity.AnubisOrderAddInfo;
import net.guerlab.sdk.anubis.response.OrderCreateResponse;

/**
 * 订单创建响应
 * 
 * @author guer
 *
 */
public class OrderCreateRequest extends AbstractBusinessRequest<OrderCreateResponse> {

    /**
     * 订单信息
     */
    private AnubisOrderAddInfo anubisOrderAddInfo;

    @Override
    protected void createRequestUri(
            StringBuilder builder) {
        builder.append(AnubisConstants.URL_ORDER_CREATE);
    }

    @Override
    protected Object getReuqestData() {
        return anubisOrderAddInfo;
    }

    /**
     * 返回 订单信息
     *
     * @return 订单信息
     */
    public AnubisOrderAddInfo getAnubisOrder() {
        return anubisOrderAddInfo;
    }

    /**
     * 设置订单信息
     *
     * @param anubisOrderAddInfo
     *            订单信息
     */
    public void setAnubisOrder(
            AnubisOrderAddInfo anubisOrderAddInfo) {
        this.anubisOrderAddInfo = anubisOrderAddInfo;
    }

}
